package com.lhkj.ct.meta.modules.warning.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lhkj.ct.base.model.dto.PageQuery;
import com.lhkj.ct.base.mybatis.extension.service.IPageService;
import com.lhkj.ct.base.mybatis.extension.service.IService;
import com.lhkj.ct.meta.modules.psychology.model.bo.DimensionBo;
import com.lhkj.ct.meta.modules.psychology.model.bo.SubmitGaugeBo;
import com.lhkj.ct.meta.modules.warning.model.entity.TblScaleWarnRecord;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 预警记录 服务类
 * </p>
 *
 * @author jobob
 * @since 2023-10-17
 */
public interface ScaleWarnRecordService extends IService<TblScaleWarnRecord>, IPageService<TblScaleWarnRecord> {

    /**
     * 预警记录 - 分页查询
     */
    IPage<TblScaleWarnRecord> selectWarnPage(TblScaleWarnRecord record, PageQuery pageQuery);

    /**
     * 生成预警记录
     */
    void generateWarnRecord(List<DimensionBo> dimensions, SubmitGaugeBo.Patient patient, String scaleId, String reportId);

    /**
     * 处理
     */
    int handle(Collection<?> ids);
}
